package com.yoga.manager.admin;

import com.yoga.common.appexception.AppException;
import com.yoga.common.bo.VipCareBO;
import com.yoga.common.bo.YogaUserBO;
import com.yoga.common.page.PageBO;
import com.yoga.common.qto.YogaUserQTO;

/**
 * Created by hdx on 2020/9/29.
 */
public interface AdminYogaUserManager {
    /**
     * 开通团课会员
     * @param yogaUserBO
     * @return
     * @throws AppException
     */
    Boolean updateData(YogaUserBO yogaUserBO) throws AppException;

    /**
     * 通过id查询会员信息
     * @param yogaUserId
     * @return
     * @throws AppException
     */
    YogaUserBO findById(Long yogaUserId) throws AppException;
    /**
     * 查询
     * @param yogaUserQTO
     * @return
     * @throws AppException
     */
    PageBO<YogaUserBO> findForPage(YogaUserQTO yogaUserQTO) throws AppException;

    /**
     * 查询会员卡
     * @param yogaUserId
     * @return
     * @throws AppException
     */
    VipCareBO findVipCardByUserId(Long yogaUserId) throws AppException;
}
